//导出模版数据
[{ value: 1, label: '围板箱' }]

//搜素标签长度
{
  "searchLabelWidth": 120
}

// 搜索项位置排序，序号越大越靠前
{
  search: true,
    searchOrder: 100,
}

//必填
{
  required: true
}

//默认搜索
{
  "searchValue": 0
}
//默认字典
{
  "dicData": [
    {
      "label": "否", value: 0
    },
    {
      "label": "是", value: 1
    }
  ]
}
//远程字典
{
  "dicUrl": "/system/dict/dictionary?code=inventory_type",
    "props": {
    "label": "dictValue",
      "value": "dictKey"
  }
}

{ label: "收货状态", value: "waiting_state" },
{ label: "质检状态", value: "qualitytest_state" },
{ label: "翻包状态", value: "pack_state" },
{ label: "上架状态", value: "pending_listed" },

[
  { label: "一级调度仓", value: 1 },
  { label: "二级调度仓", value: 2 },
  { label: "三级调度仓", value: 3 },
  { label: "四级调度仓", value: 4 }
]

"searchFormat": "YYYY-MM-DD",

  "searchType": "daterange",
    "searchOrder": "1"


"searchFormat": "YYYY-MM-DD",


  { dicData: [{ label: '免检', value: 0 }, { label: '待检', value: 1 }, { label: '检验中', value: 2 }, { label: '检验完成', value: 3 }] }

{ dicData: [{ label: '免检', value: 0 }, { label: '待检', value: 1 }, { label: '检验中', value: 2, label: '已检', value: 3 }], searchValue: 3 }



{ dicData: [{ label: '待发运', value: 0 }, { label: '已发运', value: 1 }, { label: '已取消', value: 2 }] }

{ dicData: [{ label: '待捡货', value: 0 }, { label: '捡货中', value: 1 }, { label: '捡货完成', value: 2 }, { label: '已取消', value: 3 }] }

{ dicData: [{ label: '待出库', value: 0 }, { label: '已出库', value: 1 }] }

{ dicData: [{ label: '待包装', value: 0 }, { label: '包装中', value: 1 }, { label: '包装完成', value: 2 }, { label: '已取消', value: 3 }] }


{ dicData: [{ label: '待收货', value: 0 }, { label: '收货中', value: 1 }] }

{ dicData: [{ label: '待入库', value: 0 }, { label: '入库中', value: 1 }, { label: '已入库', value: 2 }] }



isEuropeanStandard
是否欧标
{ dicData: [{ label: '否', value: 0 }, { label: '是', value: 1 }] }

{ dicData: [{ label: '已完成', value: 0 }, { label: '已关闭', value: 1 }] }

{ dicData: [{ label: '待审核', value: 0 }, { label: '已审核', value: 1 }] }

库存类型
{ dicData: [{ label: '现金', value: 0 }, { label: '寄售', value: 1 }] }

审核结果 0驳回 1通过
{ dicData: [{ label: '驳回', value: 0 }, { label: '通过', value: 1 }] }


{ dicData: [{ label: '待出库', value: 0 }] }

{ dicData: [{ label: '待发运', value: 0 }, { label: '完成发运', value: 1 }, { label: '已取消', value: 2 }] }


//是否相同
const isSame = this.selectionList.every(i => i['code'] === this.selectionList[0]['code']);
//刷新数据
this.onLoad(this.page);

{ dicData: [{ label: '待出库', value: 0 }, { label: '已出库', value: 1 }] }




{
  required: true,
    queryKey: {
    "zwarehouseCode": "V823"
  },
  query: {
    "zwarehouseCode": wms.transferIncomeStock.transferIncomeStockDo.form_defalutGroup_main_inZwarehouseCode
  },
  selectData: function({ form, data, row, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      console.info("d---------------", d);
      console.info("start---------------", form);
      row.locationCode = d.locationCode;
      row.zwarehouseCode = d.zwarehouseCode;
      row.zwarehouseName = d.zwarehouseName;
      row.zoneCode = d.zoneCode;
      row.zoneName = d.zoneName;
      console.info("end---------------", row);
    }
  }
}


{
  required: true,
    queryKey: {
    "zwarehouseCode": "zwarehouseCode"
  },
  query: {
    "zwarehouseCode": "zwarehouseCode"
  },
  selectData: function({ form, data, row, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      console.info("d---------------", d);
      console.info("start---------------", form);
      row.locationCode = d.locationCode;
      row.zwarehouseCode = d.zwarehouseCode;
      row.zwarehouseName = d.zwarehouseName;
      row.zoneCode = d.zoneCode;
      row.zoneName = d.zoneName;
      console.info("end---------------", row);
    }
  }
}



{
  required: true,
    queryKey: {
    "zwarehouseCode": "zwarehouseCode"
  },
  query: {

  },
  selectData: function({ form, data, row, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      console.info("d---------------", d);
      console.info("start---------------", form);
      row.locationCode = d.locationCode;
      row.zwarehouseCode = d.zwarehouseCode;
      row.zwarehouseName = d.zwarehouseName;
      row.zoneCode = d.zoneCode;
      row.zoneName = d.zoneName;
      console.info("end---------------", row);
    }
  }
}


{
  required: true,
    queryKey: { zwarehouseCode: "inZwarehouseCode" },
  selectData: function({ form, data, view, row }) {
    console.info("form", form)
    console.info("row", row)
    console.info("data", data)
    if (data) {
      row.inLocationCode = data.locationCode;
      row.inLocationName = data.locationName;
      row.inLocationId = data.id;
      row.inZoneCode = data.zoneCode;
      row.inZoneName = data.zoneName;
      row.inZoneId = data.zoneId;
    }
  }
}

//选择库位
{
  required: true,
    viewKey: "1833333640490700802",
      query: {

  },
  selectData: function({ form, data, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      form.factoryCode = d.factoryCode;
      form.factoryName = d.factoryName;
      form.warehouseCode = d.warehouseCode;
      form.warehouseName = d.warehouseName;
      form.zwarehouseCode = d.zwarehouseCode;
      form.zwarehouseName = d.zwarehouseName;
      form.locationId = d.locationId;
      form.locationCode = d.locationCode;
      form.locationName = d.location;
      form.zoneCode = d.zoneCode;
    }
  }
}

fctCode
addr
warehouseCode
warehouse


{ queryKey: { "zwarehouseCode": "zwarehouseCode" }, query: { "status": 0, "attribute": 0 }, selectData: function({ form, data, row, view }) { if (data) { const d = JSON.parse(JSON.stringify(data)); console.info("d---------------", d) console.info("start---------------", form) row.zoneName = d.zoneName; row.zoneCode = d.zoneCode; row.zoneId = d.zoneId; row.zwarehouseCode = d.zwarehouseCode; row.zwarehouseName = d.zwarehouseName; row.locationId = d.id; row.locationCode = d.locationCode; row.locationCodes = d.locationCode; row.locationName = d.locationName; console.info("end---------------", row) } } }


//表格选择器传参
{
  viewKey: "getpackmatrial",
    query: {
    isPackaging: 1
  },
  queryKey: {
    factoryCode: 'factoryCode'
  }
}
//重置
searchReset() {
  console.log("searchReset---", this.query)
  this.query = { status: 0 };
  this.onLoad(this.page);
},


{
  queryKey: { "zwarehouseCode": "zwarehouseCode", "stockType": "stockType" },
  required: true,
    query: { "status": 0, "attribute": 3 },
  selectData: function({ form, data, row, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      console.info("d---------------", d)
      console.info("start---------------", form)
      row.zoneName = d.zoneName;
      row.locationId = d.id;
      row.locationCode = d.locationCode;
      row.locationName = d.locationName;
      console.info("end---------------", row)
    }
  }
}

"emptyText": "取消",
  "submitText": "执行",
    "editBtnText": "执行",
      "updateBtnText": "执行",

        "updateBtnText": "执行",
          "sysCode": "wms",
            "editTitle": "入库",
              "id": "1856251536604696577",
                "moduleCode": "returndetails",
                  "dsName": "销售退货入库-待上架",
                    "dsId": "1856227847855181825",
                      "editBtnText": "入库",

                      {
                        "filterable": "",
                        "cprops": "{ dicData: [{ label: '现金', value: 0 }, { label: '寄售', value: 1 }] }\n",
                        "showColumn": true,
                        "prop": "stockType",
                        "width": 120,
                        "multiple": false,
                        "index": 99,
                        "label": "库存类型",
                        "type": "select",
                        "labelKey": "wms.purchaseReceiptDetails.purchaseReceiptDetailsUndelivered.list_stockType"
                      },


                        outZwarehouseCode

1864278655093997569

翻包台
{
  queryKey: { "zwarehouseCode": "zwarehouseCode" },
  query: { "status": 0, "attribute": 3 },
  selectData: function({ form, data, row, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      console.info("d---------------", d)
      console.info("start---------------", form)
      row.zoneName = d.zoneName;
      row.locationId = d.id;
      row.locationCode = d.locationCode;
      row.locationName = d.locationName;
      console.info("end---------------", row)
    }
  }
}


{
  "component": "jc-selectdata",
    "cprops": "\n{\n  required: true,\n  queryKey: { zwarehouseCode: \"inZwarehouseCode\" },\n  selectData: function({ form, data, view, row }) {\n    console.info(\"form\", form)\n    console.info(\"row\", row)\n    console.info(\"data\", data)\n    if (data) {\n      form.defc.forEach(function(element){\n        if(element.id == row.id){\n          console.log(\"find\", element)\n          element.inLocationCode = data.locationCode;\n          element.ppp = \"ok\";\n        }\n      });\n    }\n  }\n}",
      "viewId": "1864278655093997569",
        "prop": "inLocationCode",
          "label": "转入库位编号",
            "type": "jc-selectdata",
              "cell": true,
                "props": {
    "label": "inLocationCode",
      "text": "inLocationCode",
        "value": "inLocationCode"
  }
}


{ dicData: [{ label: '待拣货', value: 0 }, { label: '拣货中', value: 1 }, { label: '拣货完成', value: 2 }] }


const isSame = this.selectionList.every(i => i['code'] === this.selectionList[0]['code']);

// 刷新
this.onLoad(this.page);


1864226627462397953

{ required: true, queryKey: { zwarehouseCode: "inZwarehouseCode" }, query: { }, selectData: function({ form, data, row, view }) { if (data) { const d = JSON.parse(JSON.stringify(data)); console.info("d---------------", d); console.info("start---------------", form); row.locationCode = d.locationCode; row.zwarehouseCode = d.zwarehouseCode; row.zwarehouseName = d.zwarehouseName; row.zoneCode = d.zoneCode; row.zoneName = d.zoneName; console.info("end---------------", row); } } }

({
  queryKey: {
    "zwarehouseCode": "outZwarehouseCode"
  },
  selectData: function ({ form, data, row, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      // form.allocationTransferDetailsRecordList.push(d);
      // d.map(element => {

      // });
      form.allocationTransferDetailsRecordList = form.allocationTransferDetailsRecordList.concat(d);
      console.info("d---------------", d);
      console.info("start---------------", form)
      console.info("end---------------", row);
    }
  }
})




{
  required: true,
    queryKey: {
    "zwarehouseCodes": "zwarehouseCode"
  },
  query: {
    zwarehouseCode: window.TEMP_CODES
  },
  selectData: function({ form, data, row, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      console.info("d---------------", d);
      console.info("start---------------", form);
      row.locationCode = d.locationCode;
      row.zwarehouseCode = d.zwarehouseCode;
      row.zwarehouseName = d.zwarehouseName;
      row.zoneCode = d.zoneCode;
      row.zoneName = d.zoneName;
      console.info("end---------------", row);
    }
  }
}




{
  selectData: function(obj) {
    console.log("selectData---------------", obj);
  },
  changeData: function(obj) {
    console.log("changeData---------------", obj);
  }
}


@ApiModelProperty(value = "上架数量")
@TableField("n_quantity")
private BigDecimal quantity;

/**
 * 待上架数量
 *
 */
@ApiModelProperty(value = "待上架数量")
@TableField("n_stay_up_quantity")
private BigDecimal stayUpQuantity;

/**
 * 已上架数量
 *
 */
@ApiModelProperty(value = "已上架数量")
@TableField("n_already_up_quantity")
private BigDecimal alreadyUpQuantity;



{
  quantity: 0,
    stayUpQuantity: 0,
      alreadyUpQuantity: 0,
        allocationStoreRecordsVOList: [
          {

            inCode;
            detailDetailsId;
            receivingCode;
            receiptDetailsId;
            allocationCode;

            factoryCode;

            inWarehouseName;
            inWarehouseCode;
            inZwarehouseName;
            inZwarehouseCode;
            materialCode;
            materialName;

            batchNumber;
            zoneId;
            zoneCode;
            zoneName;
            locationId;
            locationCode;
            locationName;
            stockType;
            supplierCode;
            supplierName;
            upQuantity;
            receiptTime;
            company;
            remarks;
          }
        ]
}


{
  required: true,
    queryKey: { zwarehouseCode: "inZwarehouseCode" },
  selectData: function({ form, data, view, row }) {
    console.info("form", form)
    console.info("row", row)
    console.info("data", data)
    if (data) {
      row.inLocationCode = data.locationCode;
    }
  }
}

form.allocationTransferDetailsRecordList.forEach(function (element) {
  if (element.id == row.id) {
    console.log("find", element)
    element.inLocationCode = data.locationCode;
    element.ppp = "ok";
  }
});



{
  required: true,
    queryKey: {
    "zwarehouseCode": "zwarehouseCode"
  },
  query: {

  },
  selectData: function({ form, data, row, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      console.info("d---------------", d);
      console.info("start---------------", form);
      row.locationCode = d.locationCode;
      row.zwarehouseCode = d.zwarehouseCode;
      row.zwarehouseName = d.zwarehouseName;
      row.zoneCode = d.zoneCode;
      row.zoneName = d.zoneName;
      console.info("end---------------", row);
    }
  }
}